package com.mes.basicdata.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bstek.dorado.annotation.DataProvider;
import com.mes.basicdata.dao.iface.IOperationDeviceDao;
import com.mes.basicdata.domain.OperationDevice;
import com.mes.basicdata.domain.WorkCenter;
import com.mes.common.service.BasicService;
@Service
public class OperationDeviceService extends BasicService<OperationDevice>{

	@Autowired 
	private IOperationDeviceDao operationDeviceDao;
	@DataProvider
	public List<OperationDevice> getOperationDeviceByOperationUid(String operationUid) throws Exception{
		return operationDeviceDao.getOperationDeviceListByOperationUid(operationUid);
	}
	//getWorkCenterByOperationUid
	@DataProvider
	public List<WorkCenter> getWorkCenterByOperationUid(String operationUid) throws Exception{
		return operationDeviceDao.getWorkCenterByOperationUid(operationUid);
	}
	
}
